#ifndef _MYDATA_H_
#define _MYDATA_H_

enum HTTPSTATE
{
	http_state_dategetting,
	http_state_xmlgeting,
	size
};

/*
 * 保存NaviTabs的数据结构
 */
typedef struct MY_TAB_DATA
{
	int cid; 
	int level; //level == 3, channelid, < 3,categoryid
	TBuf<256> tabtitle; //unicode
	int freshtime; //避免左右切换时反复更新频道,　在一定时间内不需要检查更新
};
typedef RArray<MY_TAB_DATA*> RAppTabArray;

/*
 * 保存hmpreview的数据结构
 */
typedef struct MY_PREVIEW_DATA
{
	TBuf<256> remotesnapname; //snapped image name, remote
	TBuf<256> remotelargename; //large image name, remote
	TBuf<256> memsnapname; //snapped image name, local in storage file
	TBuf<256> memlargename; //large image name, local in storage file	
	int imgid; //based 0
	bool showed;//是否已经显示出来
};
typedef RArray<MY_PREVIEW_DATA*> RAppPreviewArray;

/*
 * 保存hmpreview的数据结构
 */
typedef struct MY_GRIDVIEW_DATA
{
	TBuf<32> name; //grid menu name
	TBuf<32> normal_img; //normal image name
	TBuf<32> active_img; //active
	TBuf<100> title; 
};
typedef RArray<MY_GRIDVIEW_DATA*> RAppGridArray;

//const
_LIT8 (KHomeUrl, "http://h1.ripway.com/itouch/myweb/");
#ifdef _DEBUG	    
_LIT (KRootImagePath, "c:\\data\\images\\itouch\\a");
#else
_LIT (KRootImagePath, "e:\\images\\itouch\\a");
#endif

#endif /*DATA_H_*/
